<?php
class FinancemanageAction extends Action{
    
    public function financemanage(){    	
    
    	$this->assign("smarty",'/manage/page/financesystem/financemanage/financemanage.html');
        return $this->SMARTY;
    }
    
    public function queryWithdInfo(){
    	global $param;
    	$params = $param->getParams();
    	tsLoad('/manage/busi/FinancemanagePage.class.php');
    	//收集当前传入的当前页信息
    	if($params['page']!=null)
    		$currentPage = $params['page'];
    	else
    		$currentPage =1;
    	//收集当前传入的一页多少条信息
    	if($params['rows']!=null)
    		$countPage = $params['rows'];
    	else
    		$countPage =10;
    	$sinancemanagePage = new FinancemanagePage();
    	$pageInfo = $sinancemanagePage->initPage($params, $countPage, $currentPage);
    	$rows = $sinancemanagePage->getCurPageData();
    	
    	$this->assign("total",$pageInfo['countRow']);
    	$this->assign("rows",$rows);
    	return $this->JSON;
    }
    
    //修改
    public function updateWithdInfoSta(){
    	global $param,$userSession;;
    	$params = $param->getParams();
    	$params['userId']=$userSession->getUserSession()["userId"];
    	$params['userLoginId']=$userSession->getUserSession()["userLoginId"];
    	tsLoad('/manage/busi/FinancemanagePage.class.php');
    	$sinancemanagePage = new FinancemanagePage();
    	$result = $sinancemanagePage->upWithdSta($params);
    
    	$this->assign("result",$result);
    	return $this->JSON;
    }
    
  
}
?>